<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC_ADMIN_DIR__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC_ADMIN_DIR__/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC_ADMIN_DIR__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC_ADMIN_DIR__/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="__PUBLIC_ADMIN_DIR__/js/select-ui.min.js"></script>
<script type="text/javascript" src="editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="{:U('Manage/index')}" target="_parent">首页</a></li>
    <li><a href="#">联系列表</a></li>
    </ul>
    </div>
    
    <div class="formbody">
  	<div id="tab2" class="tabson">
    
    <form method="post" action="">
    <ul class="seachform">
    
    <li><label>综合查询</label><input name="text" type="text" class="scinput" /></li>
    <li><label>留言时间排序</label>  
    <div class="vocation">
    <select class="select3">
    <option value="1">升序</option>
    <option value="0">降序</option>
    </select>
    </div>
    </li>
    
    <li><label>查找回复情况</label>  
    <div class="vocation">
    <select class="select3">
    <option value="0">全部</option>
    <option value="1">已回复</option>
    <option value="-1">未回复</option>
    </select>
    </div>
    </li>
    
    
    <li><label>&nbsp;</label><input name="" type="button" class="scbtn" value="查询"/></li>
    
    </ul>
    </form>
    
    <table class="tablelist">
    	<thead>
    	<tr>
    	<th width="10%">ip</th>
        <th width="5%">id号<i class="sort"><img src="__PUBLIC_ADMIN_DIR__/images/px.gif" /></i></th>
        <th width="30%">信息</th>
        <th width="10%">用户名</th>
        <th width="12%">QQ/WeChat</th>
        <th width="12%">留言时间</th>
        <th width="7%">是否回复</th>
        <th width="7%">操作</th>
        </tr>
        </thead>
        <tbody>
	       
	    <foreach name="contactData" item="row">
	        <tr>
	        <td>{$row.ip}</td>
	        <td>{$row.user_id}</td>
	        <td title="{$row.content}">{$row.content|msubstr='0','50'}</td>
	        <td>张三</td>
	        <td>{$row.qq_wechat}</td>
	        <td>{$row.cre_time}</td>
	        <td><if condition="$row.is_reply == 0">未回复<else />已回复</if></td>
	        <td><a href="#" class="tablelink">查看</a>     <a href="{:U('toDelete',array('id'=>$row['id']))}" class="tablelink">删除</a></td>
	        </tr>
    	</foreach>
    	
        </tbody>
    </table>
    </div>  
       
	</div> 
 
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    
    
    
    
    
    </div>

</body>
</html>
